package cn.uniqueww.javadesignpatterns.demos.design.fstGroup;

/**
 * 用户类型
 *
 * @since 2024/1/17 11:35 上午
 */
public enum UserType {
    /**
     * 普通用户
     */
    NORMAL(1),
    /**
     * VIP用户
     */
    VIP(0.8),
    /**
     * SVIP用户
     */
    SVIP(0.5);

    private double discount;

    UserType(double discount) {
        this.discount = discount;
    }

    public double getDiscount() {
        return discount;
    }
}
